<%--
  条形编码
  User: Ivan
  Date: 2019-11-04 14:56
--%>
<style type="text/css">
tr, th, td {
    text-align: center;
}
</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${SYS_QUERY_PATH}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <g:hiddenField name="partType" value="${partType}"/>
            <label>开始日期：</label>
            <input type="text" name="startTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd"
                   size="11" id="start-date-input" readonly value="${startTime}"/>&nbsp;
            <label>结束日期：</label>
            <input type="text" name="endTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd"
                   size="11" id="end-date-input" readonly value="${endTime}"/>&nbsp;
            <label>品名：</label>
            <g:textField name="partName" value="${partName}" size="15" placeholder="请输入品名"/>&nbsp;
            <label>条形编号：</label>
            <g:textField name="barId" value="${barId}" size="15" placeholder="请输入条形编号"/>&nbsp;
            <label>批次：</label>
            <g:textField name="lotId" value="${lotId}" size="15" placeholder="请输入批次"/>&nbsp;
            <br /><br />
            <label>箱号：</label>
            <g:textField name="startBoxLot" value="${startBoxLot}" size="12" placeholder="START"/>
            <g:textField name="endBoxLot" value="${endBoxLot}" size="12" placeholder="END"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-blue" href="${request.getContextPath()}/BarCodingHis/barCodingHis?export=xls"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="file-excel-o" title="导出Excel">导出</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${reportList.size() > 0}">
        <table class="table table-bordered table-hover table-striped table-top" data-nowrap="true"
               data-selected-multi="true" data-toggle="tablefixed" data-width="100%">
            <thead>
            <tr>
                <th width="50">NO.</th>
                <th width="150">Bundle Barcodes</th>
                <th width="100">BOX Lot#</th>
                <th width=""></th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${reportList}" status="i" var="dataInstance">
                <tr data-id="data">
                    <td>${i + 1}</td>
                    <td>${dataInstance.MLOT_ID}</td>
                    <td>${dataInstance.CASE_ID}</td>
                    <td style="text-align: left;">${dataInstance.BOX_ID}</td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/unpagination"/>